{layout name="layout" $title/}
<div class="col-md-9">
  <div class="panel panel-default panel-success">
    <div class="panel-heading">
      <h3 class="panel-title">筛选框</h3>
    </div>
    <div class="panel-body">
      <form class="form-horizontal" method="post" class="post" action="{:url('office/organization/index')}">
        <div class="form-group">
          <div class="col-md-offset-2 col-md-9">
            <p>
                  <!-- <button type="submit" class="btn btn-success ">搜  索  <span class="glyphicon glyphicon-search" aria-hidden="true"></span></button> -->
                  <!-- <button type="submit" class="btn btn-primary ">清  空   <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></button> -->
                  <a class="btn btn-primary" href="{:url('office/organization/create')}" class='btn'>添加组织机构信息  <span class="glyphicon glyphicon-th-large" aria-hidden="true"></span></a>
                  <a class="btn btn-primary" href="{:url('office/organization/index')}" class='btn'>返回清单  <span class="glyphicon glyphicon-th-large" aria-hidden="true"></span></a>                  
            </p>
          </div>
        </div>
      </form>
    </div>
  </div>
  <div class="panel panel-default  panel-info">
    <div class="panel-heading">
      <h3 class="panel-title text-center">组织机构信息列表（{$countall}）</h3>
    </div>
    <div class="panel-body">
      <div class="table-responsive">
        <table class="table table-striped .table-bordered  table-hover">
          <tr>
            <th class="">序号</td>
            <th class="">编号</td>
            <th class="">父节点</td>
            <th class="">名称</td>
            <th class="">地址</td>
            <th class="">增加记录时间</td>
            <th class="">修改记录时间</td>
            <th class="">增加记录人</td>
            <th class="">是否某事物</td>
            <th class="">某物品数量</td>
            <th class="">状态</td>
            <th class="">操作</td>
          </tr>
          {volist name="organization_tree" id="organization" }
          <tr>
            <td class="">{$i}</td>
            <td class="">{$organization.code}</td>
            <td class="" style="padding-left:{$organization.level*2}em">{$organization.parent_id_text}</td>
            <td class=""> {$organization.title}</td>
            <td class="">{$organization.address}</td>
            <td class="">{$organization.create_time}</td>
            <td class="">{$organization.update_time}</td>
            <td class="">{$organization.create_name}</td>
            <td class="">{$organization.is_sth}</td>
            <td class="">{$organization.sth_num}</td>
            <td class="">{$organization.static}</td>
            <td class="">
              <a href="{:url('office/organization/read','id='.$organization.id)}"><span class="glyphicon glyphicon-list" aria-hidden="true"></span></a>
              <a href="{:url('office/organization/edit','id='.$organization.id)}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
            </td>
          </tr>
          {/volist}
        </table>
      </div>
    </div>  
  </div>   
</div> 